package com.lonely.web.controller.tool;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.lonely.common.utils.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * swagger 接口
 *
 * @author fzzf
 */
@Controller
@RequestMapping("/tool/swagger")
public class SwaggerController {
    @SaCheckPermission("tool:swagger:view")
    @GetMapping()
    public String index() {
        return StringUtils.format("redirect:{}", "/swagger-ui.html");
    }
}
